package cn.dong.vod.service;

import com.aliyuncs.exceptions.ClientException;
import org.springframework.web.bind.annotation.PathVariable;

import java.io.IOException;
import java.io.InputStream;
import java.util.List;

public interface AdminVideoService {



    /**
     * 上传视频
     * @param inputStream
     * @param originalFilename
     * @return
     */
    String upload(String originalFilename, InputStream inputStream) throws IOException;



    /**
     * 删除视频
     * @return
     */
    boolean delete(@PathVariable String videoId) throws ClientException;

    /**
     * 批量删除
     * @param videoIds
     * @throws ClientException
     */
    void deleteByIds(List<String> videoIds) throws ClientException;

    /**
     * 根据视频源id获取凭证
     * @param id
     * @return
     */
    String getPlayAuth(String id) throws ClientException;
}
